/*
 * @Description: 路由文件
 * @Date: 2024-02-02 11:03:45
 * @FilePath: \demod:\12electron\electron-vite-template\src\renderer\src\router\index.ts
 */
import { createRouter, createWebHistory, createWebHashHistory, RouteRecordRaw } from 'vue-router';

const routes: Array<RouteRecordRaw> = [
  { path: '/', name: '/', redirect: '/home' },
  { path: '/home', name: 'home', component: () => import('@renderer/views/home/index.vue') },
];

export const router = createRouter({
  history: createWebHashHistory(), // https://cn.electron-vite.org/guide/troubleshooting
  routes,
});
